package cn.tedu.oop;

public class Test2_Override {
    public static void main(String[] args) {

    }
}
class Animal{
    void eat(){
        System.out.println("啥都吃");
    }
}
class Dog extends Animal{
    public void eat(){
        System.out.println("只吃肉");
    }
}